<template>
  <div class="tapbarItem">
    <div class="item" @click="btn">
      <slot name="item"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "TopbarItem",
  props: {
    path: String,
  },
  methods: {
    btn() {
      this.$router.replace(this.path);
    },
  },
};
</script>

<style scoped>
.tapbarItem {
  height: 72px;
}
</style>